<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>login</title>
</head>
<body>

<form action="#">
	<p>
		<input type="text">
		<img psrc="./verify.php" src="./verify.php" alt="" id="refresh">
	</p>
	<p>
		<button>login</button>
	</p>
</form>
	
</body>
<script>
	document.querySelector('#refresh').onclick=function(){
		this.src=this.getAttribute('psrc')+'?rand='+Math.random();
		console.log(this.src);
	};
</script>
</html>
